<div class="nav-search fr">
	<?php echo Form::open('search') ?>
		<?php echo Form::input(array(
			'name' => 's',
			'placeholder' => 'search',
			'value' => Input::get('s'),
			'class' => 's-text search-query'
		)); ?>
		<?php echo Form::button(array(
			'class' => 'search-button'
		)); ?>
	<?php echo Form::close() ?>
</div>
<div class="user-funcs fr">
	<?php 

	if(\Lib\Auth::check()) {
		$user = \Lib\Auth::get_user();
		echo Html::ul(array(
			'<span class="icon manage-booking"></span>' . Html::anchor('user/manage_booking', 'Manage a Booking', array('title' => 'Manage a Booking', 'class' => 'manage-booking')),
			'Hi, '.$user->username,
			'<span class="icon key"></span>' . Html::anchor('logout', 'Logout', array('title' => 'Login', 'class' => 'login'))
		), array('class' => 'nav nav-pills fr')); 
	} else {
		echo Html::ul(array(
			'<span class="icon key"></span>' . Html::anchor('login', 'Login', array('title' => 'Login', 'class' => 'login'))
		), array('class' => 'nav nav-pills fr')); 
	}

	?>
</div>
<div class="text-zooms fr">
	<?php echo Html::ul(array(
		'<a onclick="App.textSize(\'small\');" class="small">A</a>',
		'<a onclick="App.textSize(\'normal\');" class="normal">A</a>',
		'<a onclick="App.textSize(\'large\');" class="large">A</a>'
	), array('class' => 'nav nav-pills')); ?>
</div>
<div class="text-colors fr">
	<?php echo Html::ul(array(
		'<a onclick="App.textColor(\'1\');" class="color-1"><span class="icon color-1"></span></a>',
		'<a onclick="App.textColor(\'2\');" class="color-2"><span class="icon color-2"></span></a>',
		'<a onclick="App.textColor(\'3\');" class="color-3"><span class="icon color-3"></span></a>'
	), array('class' => 'nav nav-pills')); ?>
</div>